<template>
  <div>
    注册
    {{ $route.params.name }}-- 
    {{ $route.params.age }}
  </div>
</template>

<script>
export default {
  created() {
    console.log(this.$route.params)
  },
}
</script>

<style scoped></style>
